package com.yuandian.management.vo.flowConf.pojo;

import lombok.Data;

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

@Data
public class FilterEntity {

	private Integer id;
	private String ruleName;
	private Map<String, Long> resourceCodings = new ConcurrentHashMap<String, Long>();
	private String requestIpRule; //prep:不包含   in:包含
	private String requestIps;
	private String responseIpRule; //prep:不包含   in:包含
	private String responseIps;
	private Map<String, String> keyWorlds = new HashMap<>();
	private Long startTime;
	private Long endTime;
	private Long captureCount; //需过滤的条数
	private Long capturedCount; //已过滤的条数
	private boolean isFilterByResouceCoding = false;
	private boolean isFilterByTime = false;
	private boolean isFilterByReqIp = false;
	private boolean isFilterByResIp = false;
	private boolean isFilterByKeyword = false;

	// 启用禁用字段
	private Integer isStatus;

	// 同步状态
	private Integer status;

	// 执行完成
	private Integer enable;

	private Integer dr ;
}
